Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AssessmentValue global API #955

Merged
merged 14 commits into from
Sep 3, 2024
Merged

Update AssessmentValue global API #955

merged 14 commits into from
Sep 3, 2024

Conversation

shapiromatron
Copy link
Owner

@shapiromatron shapiromatron commented Nov 27, 2023

Rewrite AssessmentValue export to improve performance.

Updated the API to also allow for filtering for basic assessment information, as well as casrn or dtxsid, for example cas=7681-49-4&dtxsid=DTXSID20220630.

This PR also includes a new helper method, hawc.apps.common.filters.filtered_qs, which allows you to use a FilterSet in a DRF view and filter the queryset given any user specified query parameters.

rabstejnek and others added 8 commits October 12, 2023 09:58
* preliminary epi rewrite

* changes

* changes

* changes

* fix

* added back something accidentally deleted

* moved code

* fix test

* remove old stuff

* cleanup:

* use vectorized timestamp conversion

* minor formatting

---------

Co-authored-by: Andy Shapiro <shapiromatron@gmail.com>
* preliminary epi rewrite

* changes

* changes

* changes

* fix

* added back something accidentally deleted

* moved code

* fix test

* remove old stuff

* cleanup:

* rewrite riskofbias exports

* update naming for domain and metric

---------

Co-authored-by: Daniel Rabstejnek <rabstejnek@gmail.com>
* preliminary epi rewrite

* changes

* changes

* changes

* fix

* added back something accidentally deleted

* moved code

* fix test

* remove old stuff

* cleanup:

* epimeta export rewrite

* remove obsolete code

* changes

* merge fix

* update admin site to browse data pivot by evidence type

---------

Co-authored-by: Andy Shapiro <shapiromatron@gmail.com>
@shapiromatron shapiromatron changed the base branch from main to exports-v2 November 28, 2023 19:59
@dannypeterson dannypeterson marked this pull request as ready for review November 30, 2023 16:39
@shapiromatron shapiromatron changed the title Export rewrites Update AssessmentValue API Nov 30, 2023
@shapiromatron shapiromatron changed the title Update AssessmentValue API Update AssessmentValue global API Nov 30, 2023
Base automatically changed from exports-v2 to main July 2, 2024 20:49
# Conflicts:
#	hawc/apps/animal/api.py
#	hawc/apps/assessment/exports.py
#	hawc/apps/epi/exports.py
#	hawc/apps/riskofbias/api.py
#	hawc/apps/summary/admin.py
#	tests/hawc/apps/hawc_admin/test_api.py
@shapiromatron shapiromatron merged commit c503efa into main Sep 3, 2024
6 checks passed
@shapiromatron shapiromatron deleted the export-rewrites branch September 3, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants